<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>collection - ClueLib</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="collection"></a>collection</h1><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual class collection#(</td><td class="PType  prettyprint " nowrap>type&nbsp;</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> int</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Defines the core functionality of a collection.</p><h4 class=CHeading>Parameter</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>T</td><td class=CDLDescription><span class="optional">optional</span> The type of collected data.&nbsp; The default is <b>int</b>.</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#collection" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">collection</a></td><td class=SDescription><span class="virtual">virtual</span> Defines the core functionality of a collection.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#collection.Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent2 SMarked"><td class=SEntry><a href="#collection.da_type" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">da_type</a></td><td class=SDescription>The shorthand of the dynamic array of type <b>T</b>.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#collection.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#collection.cmp" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">cmp</a></td><td class=SDescription><span class="protected">protected</span> A comparator to compare the elements of type <b>T</b>.</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#collection.fmtr" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">fmtr</a></td><td class=SDescription><span class="protected">protected</span> An object that provides a function to convert the element of type <b>T</b> to a string.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#collection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#collection.add" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">add</a></td><td class=SDescription><span class="virtual">virtual</span> Adds the given element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#collection.add_all" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">add_all</a></td><td class=SDescription><span class="virtual">virtual</span> Adds all of the elements in the given collection to this collection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#collection.clear" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">clear</a></td><td class=SDescription><span class="virtual">virtual</span> Removes all of the elements from this collection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#collection.contains" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">contains</a></td><td class=SDescription><span class="virtual">virtual</span> Returns 1 if this collection contains the specified element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#collection.contains_all" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">contains_all</a></td><td class=SDescription><span class="virtual">virtual</span> Returns 1 if this collection contains all of the elements in the specified collection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#collection.is_empty" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">is_empty</a></td><td class=SDescription><span class="virtual">virtual</span> Returns 1 if this collection contains no elements.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#collection.get_iterator" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">get_iterator</a></td><td class=SDescription><span class="pure">pure</span> <span class="virtual">virtual</span> Returns an iterator over the elements contained in this collection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#collection.remove" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">remove</a></td><td class=SDescription><span class="virtual">virtual</span> Removes the specified element from this collection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#collection.remove_all" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">remove_all</a></td><td class=SDescription><span class="virtual">virtual</span> Removes the elements in the given collection from this collection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#collection.retain_all" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">retain_all</a></td><td class=SDescription><span class="virtual">virtual</span> Retains only the elements in this collection that are contained in the specified collection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#collection.size" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">size</a></td><td class=SDescription><span class="virtual">virtual</span> Returns the number of elements in this collection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#collection.to_dynamic_array" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">to_dynamic_array</a></td><td class=SDescription><span class="virtual">virtual</span> Returns a new dynamic array that contains the elements in this collection.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="collection.Types"></a>Types</h3></div></div>

<div class="CType"><div class=CTopic><h3 class=CTitle><a name="collection.da_type"></a>da_type</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">typedef T da_type[]</td></tr></table></blockquote><p>The shorthand of the dynamic array of type <b>T</b>.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="collection.Properties"></a>Properties</h3></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="collection.cmp"></a>cmp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>protected comparator#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) cmp</td></tr></table></td></tr></table></blockquote><p><span class="protected">protected</span> A comparator to compare the elements of type <b>T</b>.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="collection.fmtr"></a>fmtr</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>protected formatter#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) fmtr</td></tr></table></td></tr></table></blockquote><p><span class="protected">protected</span> An object that provides a function to convert the element of type <b>T</b> to a string.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="collection.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.add"></a>add</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit add(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>e</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Adds the given element.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>e</td><td class=CDLDescription>An element to be added.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection changed as a result of the call, 1 is returned.&nbsp; Otherwise, 0 is returned.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.add_all"></a>add_all</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit add_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Adds all of the elements in the given collection to this collection.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>A collection containing elements to be added to this collection.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection changed as a result of the call, 1 is returned.&nbsp; Otherwise, 0 is returned.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.clear"></a>clear</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function void clear()</td></tr></table></blockquote><p><span class="virtual">virtual</span> Removes all of the elements from this collection.</p><h4 class=CHeading>Returns</h4><p>None.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.contains"></a>contains</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit contains(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>e</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Returns 1 if this collection contains the specified element.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>e</td><td class=CDLDescription>An element to be tested.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection contains the specified element, returns 1.&nbsp; Otherwise, returns 0.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.contains_all"></a>contains_all</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit contains_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Returns 1 if this collection contains all of the elements in the specified collection.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>A collection to be checked.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection contains all of the elements in the specified collection, returns 1.&nbsp; Otherwise, returns 0.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.is_empty"></a>is_empty</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function bit is_empty()</td></tr></table></blockquote><p><span class="virtual">virtual</span> Returns 1 if this collection contains no elements.</p><h4 class=CHeading>Returns</h4><p>If this collection contains no elements, returns 1.&nbsp; Otherwise, returns 0.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.get_iterator"></a>get_iterator</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>pure virtual function iterator#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) get_iterator()</td></tr></table></td></tr></table></blockquote><p><span class="pure">pure</span> <span class="virtual">virtual</span> Returns an iterator over the elements contained in this collection.</p><h4 class=CHeading>Returns</h4><p>An iterator over the elements contained in this collection.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.remove"></a>remove</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit remove(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>e</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Removes the specified element from this collection.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>e</td><td class=CDLDescription>An element to be removed.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection changed as a result of the call, 1 is returned.&nbsp; Otherwise, 0 is returned.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.remove_all"></a>remove_all</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit remove_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Removes the elements in the given collection from this collection.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>A collection containing elements to be removed from this collection.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection changed as a result of the call, 1 is returned.&nbsp; Otherwise, 0 is returned.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.retain_all"></a>retain_all</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit retain_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Retains only the elements in this collection that are contained in the specified collection.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>c</td><td class=CDLDescription>A collection containing elements to be retained in this collection.</td></tr></table><h4 class=CHeading>Returns</h4><p>If this collection changed as a result of the call, 1 is returned.&nbsp; Otherwise, 0 is returned.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.size"></a>size</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function int size()</td></tr></table></blockquote><p><span class="virtual">virtual</span> Returns the number of elements in this collection.</p><h4 class=CHeading>Returns</h4><p>The number of elements in this collection.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="collection.to_dynamic_array"></a>to_dynamic_array</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function da_type to_dynamic_array()</td></tr></table></blockquote><p><span class="virtual">virtual</span> Returns a new dynamic array that contains the elements in this collection.</p><h4 class=CHeading>Returns</h4><p>A new dynamic array that contains the elements in this collection.</p></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CClass><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual class collection#(</td><td class="PType  prettyprint " nowrap>type&nbsp;</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> int</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Defines the core functionality of a collection.</div></div><div class=CToolTip id="tt2"><div class=CType><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">typedef T da_type[]</td></tr></table></blockquote>The shorthand of the dynamic array of type <b>T</b>.</div></div><div class=CToolTip id="tt3"><div class=CProperty><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>protected comparator#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) cmp</td></tr></table></td></tr></table></blockquote><span class="protected">protected</span> A comparator to compare the elements of type <b>T</b>.</div></div><div class=CToolTip id="tt4"><div class=CProperty><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>protected formatter#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) fmtr</td></tr></table></td></tr></table></blockquote><span class="protected">protected</span> An object that provides a function to convert the element of type <b>T</b> to a string.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit add(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>e</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Adds the given element.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit add_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Adds all of the elements in the given collection to this collection.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function void clear()</td></tr></table></blockquote><span class="virtual">virtual</span> Removes all of the elements from this collection.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit contains(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>e</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Returns 1 if this collection contains the specified element.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit contains_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Returns 1 if this collection contains all of the elements in the specified collection.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function bit is_empty()</td></tr></table></blockquote><span class="virtual">virtual</span> Returns 1 if this collection contains no elements.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>pure virtual function iterator#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) get_iterator()</td></tr></table></td></tr></table></blockquote><span class="pure">pure</span> <span class="virtual">virtual</span> Returns an iterator over the elements contained in this collection.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit remove(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>e</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Removes the specified element from this collection.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit remove_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Removes the elements in the given collection from this collection.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function bit retain_all(</td><td class="PType  prettyprint " nowrap>collection#( T )&nbsp;</td><td class="PParameter  prettyprint " nowrap>c</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Retains only the elements in this collection that are contained in the specified collection.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function int size()</td></tr></table></blockquote><span class="virtual">virtual</span> Returns the number of elements in this collection.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual function da_type to_dynamic_array()</td></tr></table></blockquote><span class="virtual">virtual</span> Returns a new dynamic array that contains the elements in this collection.</div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>